home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / April 96 / Re Document icons.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  2.3 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Document icons
  2. Sent:        4/8/96 7:14 PM
  3. Received:    4/8/96 7:31 PM
  4. From:        Mark Lanett, mlanett@meer.net
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. There's a little more to it than just changing the icons. First you have to
  9. deal with an incomplete PartMaker job.
  10.  
  11. You see, PartMaker generates a copy of a sample project with the most
  12. important things renamed (classes, files, SOM identifiers). It does *not*
  13. change part signatures and other OSTypes that are icon-related. Unless
  14. you've done this yourself, you are probably dealing with part signature
  15. information from ODFHello.
  16.  
  17. All the information pertaining to OpenDoc part signatures is scattered
  18. through both the BNDL and nmap resource sets (2 BNDLs, up to 6 nmaps). It
  19. should be described in the OpenDoc programmers guide, and probably some
  20. recipes.
  21.  
  22. We have an ODF R1 document that talks about this as well. We'll post it
  23. tomorrow. In brief, however, for the icon for your document you need to
  24. change the k<MyPart>OSType define (in define.h in ODF d11 I think), and the
  25. associated OSType in your second BNDL resource. The part signature is
  26. easier: just change the OSType in the project preferences window (if you
  27. are using CW) and the first BNDL resource. And change the icon itself of
  28. course :)
  29.  
  30. A longer-term solution to this incomplete job performed by PartMaker is to
  31. have some sort of "Wizard" for editing all the binding information. It's on
  32. the ODF To-Do list.
  33.  
  34. At 3:34 PM 4/8/96, Chris Hunt wrote:
  35. >Re: ODFDraw, OpenDoc 1.0. and ODF d11.
  36. >
  37. >I modified my MacIcons.rsrc file and replaced its icon sets with new icons
  38. >(same id etc.).  I executed the build script in MPW and then relinked the
  39. >part editor so that it builds the required .rsrc files.
  40. >
  41. >The problem: the icons are not used by the part editor when it executes
  42. >(the document it saves doesn't have the new icon appearance, and the app.
  43. >icon in the Finder menu hasn't changed).
  44.  
  45.  
  46.  
  47. >I also noted that if I embed the part in another, and then use part info
  48. >to show the part as an icon (large or small), the new icon shows ok.
  49.  
  50. This is because ODF is pulling passing the icon to OpenDoc by resource id,
  51. rather than relying on the binding information.
  52.  
  53. markl
  54.  
  55. --
  56. Mark Lanett, ODF
  57.  
  58.  
  59.